package homeworke.qusetion22;

/**
 * Author：毕龙
 * Date: 2024/4/18 20:19
 */
public class SalariedEmployee extends Employee{
    private double salary;

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    @Override
    public double getSalary(int month) {
        return super.getSalary(month)+salary;
    }
}
